package com.whpost.api.error;
/**
 * 
 *@Title MyException.java
 *@description 自定义异常类
 *@time 2018年12月4日 下午3:13:04
 *@author YinZhuoyi
 *@version 1.0
*
 */
public class MyException extends Exception {

	private static final long serialVersionUID = 1L;
	private String code;	//状态码
	private String data;	//返回数据
	/**
	 */
	public MyException(String message,String code,String data) {
        super(message);
        this.code = code;
        this.data = data;
    }
	public String getCode() {
        return code;
    }
	public String getData() {
        return data;
    }
}